package eerbaar.internal.level;

import eerbaar.context.IContext;
import eerbaar.expression.ExpressionFactory;
import eerbaar.expression.IExpression;
import eerbaar.level.IExpressions;

public class Expressions implements IExpressions {

    private final IExpression and = ExpressionFactory.createExpression("and",
            null);

    @Override
    public void addExpression(IExpression expression) {

        this.and.addExpression(expression);
    }

    @Override
    public boolean execute(IContext model) {

        return this.and.execute(model);
    }

    @Override
    public IExpression[] getExpressions() {

        return this.and.getExpressions();
    }

    @Override
    public void start() {
        this.and.start();
    }

    @Override
    public void stop() {
        this.and.stop();
    }

}
